package errno

var (
	//系统错误码
	OK                  = &Errno{Code: 0, Msg: "OK"}
	InternalServerError = &Errno{Code: 10001, Msg: "网络错误"}
	ErrBind             = &Errno{Code: 10002, Msg: "将请求正文绑定到结构时出错"}
	ErrValidation       = &Errno{Code: 20001, Msg: "参数不完整"}
	ErrDatabase         = &Errno{Code: 20002, Msg: "数据库错误"}
	ErrToken            = &Errno{Code: 20003, Msg: "签名错误"}
	//用户服务错误码
	ErrEncrypt              = &Errno{Code: 20101, Msg: "密码不匹配"}
	ErrTokenInvalid         = &Errno{Code: 20103, Msg: "验证失效"}
	ErrPasswordIncorrect    = &Errno{Code: 20104, Msg: "密码错误"}
	ErrUserNotFound         = &Errno{Code: 20102, Msg: "用户不存在"}
	ErrUserPasswordNotMatch = &Errno{Code: 20105, Msg: "密码不一致"}
	//帖子服务
	ErrUserIdEmpty = &Errno{Code: 30101, Msg: "用户ID为空"}
	ErrPostPage    = &Errno{Code: 30102, Msg: "page不能为空"}
)
